<?php
define('CURRENT_TIMESTAMP', $_SERVER['REQUEST_TIME']);
define('CURRENT_DATETIME', date('Y-m-d H:i:s'));
define('COOKIE_PATH', '/');
define('COOKIE_EXPIRE', 7);
define('VDIR', __DIR__ . '/..');

require __DIR__ . '/../cs.php';

$config = require(VDIR . '/config/web.php');

require(VDIR . '/framework/vendor/autoload.php');
require(VDIR . '/framework/vendor/yiisoft/yii2/Yii.php');
# 目录映射
Yii::setAlias('@BaseComponents', VDIR . '/framework/components/');
(new yii\web\Application($config))->run();
